﻿// -----------------------------------------------------------------------
// <copyright file="XmlFactory.cs" company="Hewlett-Packard">
// TODO: Update copyright text.
// </copyright>
// -----------------------------------------------------------------------

namespace Ex3.Repository
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using FacebookWrapper.ObjectModel;

    /// <summary>
    /// TODO: Update summary.
    /// </summary>
    public class XmlFactory : RepositoryFactory
    {
        public XmlFactory(User i_LoggedinUser)
        {
            this.LoggedinUser = i_LoggedinUser;
        }

        public IFileRankRepository CreateNewFileRankRepository()
        {
            return new XmlFileRank(this.LoggedinUser);
        }

        public ICircleRepository CreateNewCircleRepository()
        {
            return new XmlCircle(this.LoggedinUser);
        }
    }
}